Communication protocols
USB
We utlize USB CDC connection to create a serial link from the root device to the DeepVibe Server.
Hardware connection
The setup is created where the client works as a
USB Deviceand the server works asUSB Hostusing USB CDC stack and implemented using TinyUSB library supported by ESP-IDF. Code is based on this esp-idf exampleHardware requirement (Information extracted from here)
Two ESP boards that have USB-OTG supported. One will act as USB host and the other as USB device. Connect USB_D+, USB_D-, GND and +5V signals of USB host to USB device.
Pin assignment (Information extracted from here)
Pin assignment is only needed for ESP chips that have an USB-OTG peripheral. If your board doesn't have a USB connector connected to the USB-OTG dedicated GPIOs, you may have to DIY a cable and connect D+ and D- to the pins listed below.
ESP BOARD USB CONNECTOR (type A)
--
| || VCC
[USBPHY_DM_NUM] ------> | || D-
[USBPHY_DP_NUM] ------> | || D+
| || GND
--Refer to
soc/usb_pins.hto find the real GPIO number of USBPHY_DP_NUM and USBPHY_DM_NUM.USB_DP USB_DM ESP32-S2/S3 GPIO20 GPIO19